﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EVEWWS
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            EVEApi.API API = new EVEApi.API();
            comboBox1.DataSource = API.CharacterLoad();
            comboBox1.DisplayMember = "name";
            comboBox1.ValueMember = "characterID";
        }

        private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e)
        {
            EVEApi.API API = new EVEApi.API();
            dataGridView1.DataSource = API.TransactionLoad(comboBox1.SelectedValue.ToString());

        }
    }
}
